package android.contest.weather;

import java.util.ArrayList;

/**
 * Combines one WeatherCurrentCondition with a List of
 * WeatherForecastConditions.
 */
public class WeatherSet {
	
	// ===========================================================
	// Fields
	// ===========================================================

	private WeatherCurrentCondition myCurrentCondition = null;
	private ArrayList<WeatherForecastCondition> myForecastConditions = 
		new ArrayList<WeatherForecastCondition>(4);
	private String myForecastDate =null;
	private String myCurrentDateTime = null;

	// ===========================================================
	// Getter & Setter
	// ===========================================================

	public WeatherCurrentCondition getWeatherCurrentCondition() {
		return myCurrentCondition;
	}

	public void setWeatherCurrentCondition(
			WeatherCurrentCondition myCurrentWeather) {
		this.myCurrentCondition = myCurrentWeather;
	}

	public ArrayList<WeatherForecastCondition> getWeatherForecastConditions() {
		return this.myForecastConditions;
	}

	public WeatherForecastCondition getLastWeatherForecastCondition() {
		return this.myForecastConditions
				.get(this.myForecastConditions.size() - 1);
	}

	/**
	 * @return the myForecastDate
	 */
	public String getForecastDate() {
		return myForecastDate;
	}

	/**
	 * @param myForecastDate the myForecastDate to set
	 */
	public void setForecastDate(String myForecastDate) {
		this.myForecastDate = myForecastDate;
	}

	/**
	 * @return the myCurrentDateTime
	 */
	public String getCurrentDateTime() {
		return myCurrentDateTime;
	}

	/**
	 * @param myCurrentDateTime the myCurrentDateTime to set
	 */
	public void setCurrentDateTime(String myCurrentDateTime) {
		this.myCurrentDateTime = myCurrentDateTime;
	}
}
